#ifndef AFX_CTRACKBAR_H
#define AFX_CTRACKBAR_H

#include <windows.h>
#include <commctrl.h>

class CTrackbar {
  private:
    HWND m_hTrackbar;
  public:
    CTrackbar();
    void SetHandle(HWND hTrackbar);
    HWND GetHandle();
    HWND Create(DWORD dwStyle, int x, int y, int nWidth, int nHeight,
        HWND hParentWnd, UINT nID);
    BOOL Destroy();
    INT SetBuddy(BOOL bLocation, HWND hwndBuddy);
    INT GetBuddy(BOOL bLocation);
    INT GetChannelRect(LPRECT lpRect);
    INT SetLineSize(int nLineSize);
    INT GetLineSize();
    INT GetNumTicks();
    INT SetPageSize(int nPageSize);
    INT GetPageSize();
    INT SetPos(BOOL bRedraw, int nPosition);
    INT GetPos();
    INT SetRange(BOOL bRedraw, int nMinimum, int nMaximum);
    INT SetRangeMin(BOOL bRedraw, int nMinimum);
    INT GetRangeMin();
    INT SetRangeMax(BOOL bRedraw, int nMaximum);
    INT GetRangeMax();
    INT SetSel(BOOL bRedraw, int nMinimum, int nMaximum);
    INT ClearSel(BOOL bRedraw);
    INT SetSelStart(BOOL bRedraw, int nStart);
    INT GetSelStart();
    INT SetSelEnd(BOOL bRedraw, int nEnd);
    INT GetSelEnd();
    INT SetThumbLength(UINT nLength);
    INT GetThumbLength();
    INT GetThumbRect(LPRECT lpRect);
    INT SetTipSide(int nLocation);
    INT SetTick(int nPosition);
    INT GetTick(int nTick);
    INT GetPTicks();
    INT ClearTicks(BOOL bRedraw);
    INT SetTickFreq(int nFrequency);
    INT GetTickPos(int nTic);
    INT SetToolTips(HWND hwndToolTips);
    INT GetToolTips();
    INT SetUnicodeFormat(BOOL bUnicode);
    INT GetUnicodeFormat();
};

#endif // AFX_CTRACKBAR_H
